# list=[1,2,1,3,5,5]
# list1=[]
# for i in list:
#     if i not in list1:
#         list1.append(i)
# print(list1)

# with open('ww','r',encoding='utf8')as f:
#     data_list=[tuple([int(j.strip())for j in i.split(",")])for i in f.readlines()]
# print(data_list)


import re
import time
# 爬虫
import requests
import uuid
url_page="https://mm.enterdesk.com/dongmanmeinv/"
ret=requests.get(url=url_page)
# 发送请求
# url='https://img.lianzhixiu.com/uploads/allimg/202109/9999/b9de1df2ef.jpg'
url_lst=re.findall('https://up.enterdesk.com/edpic_360_360.*?\.jpg',ret.text)
for url in url_lst:
    res=requests.get(url=url)
    time.sleep(3)
# 将响应数据转化为二进制流数据
    content=res.content
    name=str(uuid.uuid1())+".jpg"
# 将二进制流数据写入文件
    with open(name,'wb')as f:
        print("正在下载%s"% name)
        f.write(content)